package service;

import java.sql.SQLException;
import java.util.List;

import org.eclipse.jdt.annotation.NonNull;

import bean.User;

public interface UserService {
    
    boolean add(@NonNull User user) throws SQLException;

    boolean modify(@NonNull User user) throws SQLException;

    List<User> queryAll() throws SQLException;

    User query(int userId) throws SQLException;

    boolean remove(int userId) throws SQLException;
    
}
